Public Class QuanLyHanhKhach
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents gridHanhKhach As System.Windows.Forms.DataGrid
    Friend WithEvents btnCapNhat As System.Windows.Forms.Button
    Friend WithEvents btnThoat As System.Windows.Forms.Button
    Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
    Friend WithEvents Label1 As System.Windows.Forms.Label
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(QuanLyHanhKhach))
        Me.gridHanhKhach = New System.Windows.Forms.DataGrid
        Me.btnCapNhat = New System.Windows.Forms.Button
        Me.btnThoat = New System.Windows.Forms.Button
        Me.Label1 = New System.Windows.Forms.Label
        Me.PictureBox1 = New System.Windows.Forms.PictureBox
        CType(Me.gridHanhKhach, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'gridHanhKhach
        '
        Me.gridHanhKhach.BackColor = System.Drawing.SystemColors.Info
        Me.gridHanhKhach.BackgroundColor = System.Drawing.Color.LavenderBlush
        Me.gridHanhKhach.CaptionBackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(128, Byte), Integer))
        Me.gridHanhKhach.CaptionForeColor = System.Drawing.Color.Blue
        Me.gridHanhKhach.CaptionText = "Thông Tin Hành Khách"
        Me.gridHanhKhach.DataMember = ""
        Me.gridHanhKhach.Font = New System.Drawing.Font("Times New Roman", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.gridHanhKhach.ForeColor = System.Drawing.Color.Blue
        Me.gridHanhKhach.GridLineColor = System.Drawing.Color.Orchid
        Me.gridHanhKhach.HeaderBackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
        Me.gridHanhKhach.HeaderForeColor = System.Drawing.SystemColors.ControlText
        Me.gridHanhKhach.Location = New System.Drawing.Point(24, 80)
        Me.gridHanhKhach.Name = "gridHanhKhach"
        Me.gridHanhKhach.PreferredColumnWidth = 180
        Me.gridHanhKhach.RowHeaderWidth = 40
        Me.gridHanhKhach.Size = New System.Drawing.Size(640, 240)
        Me.gridHanhKhach.TabIndex = 0
        '
        'btnCapNhat
        '
        Me.btnCapNhat.Font = New System.Drawing.Font("Times New Roman", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(163, Byte))
        Me.btnCapNhat.ForeColor = System.Drawing.Color.Blue
        Me.btnCapNhat.Location = New System.Drawing.Point(216, 336)
        Me.btnCapNhat.Name = "btnCapNhat"
        Me.btnCapNhat.Size = New System.Drawing.Size(91, 32)
        Me.btnCapNhat.TabIndex = 1
        Me.btnCapNhat.Text = "Cập Nhật"
        '
        'btnThoat
        '
        Me.btnThoat.Font = New System.Drawing.Font("Times New Roman", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(163, Byte))
        Me.btnThoat.ForeColor = System.Drawing.Color.Blue
        Me.btnThoat.Location = New System.Drawing.Point(432, 336)
        Me.btnThoat.Name = "btnThoat"
        Me.btnThoat.Size = New System.Drawing.Size(91, 32)
        Me.btnThoat.TabIndex = 2
        Me.btnThoat.Text = "Thoát"
        '
        'Label1
        '
        Me.Label1.Font = New System.Drawing.Font("Times New Roman", 20.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(163, Byte))
        Me.Label1.ForeColor = System.Drawing.Color.Blue
        Me.Label1.Location = New System.Drawing.Point(104, 8)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(560, 56)
        Me.Label1.TabIndex = 44
        Me.Label1.Tag = ""
        Me.Label1.Text = "QUẢN LÝ HÀNH KHÁCH"
        Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
        '
        'PictureBox1
        '
        Me.PictureBox1.ErrorImage = Nothing
        Me.PictureBox1.Image = CType(resources.GetObject("PictureBox1.Image"), System.Drawing.Image)
        Me.PictureBox1.Location = New System.Drawing.Point(8, 8)
        Me.PictureBox1.Name = "PictureBox1"
        Me.PictureBox1.Size = New System.Drawing.Size(88, 56)
        Me.PictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
        Me.PictureBox1.TabIndex = 45
        Me.PictureBox1.TabStop = False
        '
        'QuanLyHanhKhach
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(7, 19)
        Me.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
        Me.ClientSize = New System.Drawing.Size(680, 382)
        Me.Controls.Add(Me.PictureBox1)
        Me.Controls.Add(Me.Label1)
        Me.Controls.Add(Me.btnCapNhat)
        Me.Controls.Add(Me.btnThoat)
        Me.Controls.Add(Me.gridHanhKhach)
        Me.Font = New System.Drawing.Font("Times New Roman", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Name = "QuanLyHanhKhach"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "Quản Lý Hành Khách"
        CType(Me.gridHanhKhach, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private Sub QuanLyHanhKhach_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim sb As New HanhKhach
        sb = New HanhKhach
        Dim ds As DataSet
        ds = sb.LayDSHanhKhach()
        sb = Nothing
        gridHanhKhach.DataSource = ds.Tables(0)
    End Sub

    Private Sub btnCapNhat_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCapNhat.Click

    End Sub

    Private Sub btnThoat_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnThoat.Click
        Me.Close()
    End Sub
End Class
